package client;

import server.MobileCodeWS;
import server.MobileCodeWSSoap;

public class PhoneAddressClient {
	 public static void main(String[] args) {
	        System.out.println("王琰的手机号： "+getPhoneAddress("13072588136"));
	        System.out.println("赖赖的手机号： "+getPhoneAddress("15669295331"));
	    }

	    public static String getPhoneAddress(String phone){
	        //1.实例化生成的服务类
	        MobileCodeWS ws = new MobileCodeWS();
	        //2.调用服务类的方法获取接口实例
	        MobileCodeWSSoap soap = ws.getMobileCodeWSSoap();
	        //3.通过接口直接获取数据
	        //return soap.getDatabaseInfo();
	       return soap.getMobileCodeInfo(phone,"");
	    }
}
